package com.maserb.monitor.service.schoolForum;

import com.maserb.monitor.entity.schoolForum.CommentEntity;
import com.maserb.monitor.entity.schoolForum.CommentReplyEntity;
import com.maserb.monitor.repository.schoolForum.CommentReplyRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface CommentReplyService extends JpaSpecificationService<CommentReplyRepository, CommentReplyRepository, CommentReplyEntity, String> {

    Page<CommentReplyEntity> findAll(Pageable pageable, String commentId);

    List<CommentReplyEntity> findTopReplyList(CommentEntity comment);
}